﻿create table [dbo].[Exception]
(
	[ExceptionId]                   int                 not null        identity(1, 1)
	, [ConcurrencyId]               rowversion          not null
	, [PublicationId]               uniqueidentifier    not null
	, [AppDomainId]                 int                 null
	, [AssemblyId]                  int                 not null
	, [MachineId]					int					null
	, [IIdentityId]					int					not null
	, [ProcessId]                   int                 null
	, [TargetSiteId]                int                 null
	, [ThreadId]                    int                 not null
	, [WorkItemId]					int					null
	, [ExceptionType]               nvarchar(255)       not null
	, [HelpLink]                    nvarchar(512)       null
	, [HResult]                     int                 null
	, [IsTransient]                 bit                 null
	, [Message]                     nvarchar(512)       not null
	, [Source]                      nvarchar(512)       null
	, [StackTrace]                  nvarchar(max)       null
	, [Unhandled]					bit					null
	, [FirstChance]					bit					null
	, [SerializedDictionaryXml]		xml					null
	, [SerializedExceptionXml]      xml                 null
	, [XElement]					xml					null
	, [Created]                     datetime2           not null
	, [Updated]                     datetime2           not null
)
